<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form form class="form-horizontal" id="form" method="post" action="">
							<input type='hidden' name='id' value='{$data['id']}'/>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 园地标题</label>
                                <div class="col-sm-9">
                                    <input type="text" name="title" id="title" value='{$data['title']}' class="rcol-xs-10 col-sm-5"
                                           value="">
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle"></span>
                                            </span>
                                </div>
                            </div>
                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 园地图片 </label>
                                <div class="col-sm-9">
                                <div class="col-sm-5">
    										<!-- 图片上传提交的地址  class不可改,-->
    									<input type="hidden" name="url" disabled="disabled" class="url" value="{:U('Cropper/profile',array('width'=>300,'height'=>300))}"/>    		 <!-- 宽高比(默认1) class不可改,可不写(根据图片上传提交的地址指定的宽高自动生成宽高比)，建议填写-->
									    	<!-- 图片比例 -->
									    <input type="hidden" disabled="disabled" name="ratio" class="ratio" value='1'/>
									    	<!-- 单图上传 1   多图上传2  单图可不写-->
									    <input type="hidden" disabled="disabled" name="batchP" class="batchP" value='2'/>
									     		 <!-- 默认图片 class不可改,form 提交-->
									     <input type="hidden" name="content"  class='head' value="{$data['content']}" />
									        	<!-- 必须 -->
									     <include file="Public/cropper"/>
                                    </div>
                                    <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">仅支持jpg、gif、png、bmp、jpeg，且小于1MB；仅展示前三张图片！</span>
											</span>
                                </div>

                            </div>
                            <div class="space-4"></div>


                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info" id="submit" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">

$(function () {
        $("#submit").click(function () {
              var title = $.trim($("#title").val());
              var content = $.trim($("#content").val());
            if (title == '') {
                bootbox.dialog({
                    title: '友情提示：',
                    message: "请填写幼儿园地标题！",
                    buttons: {
                        "success": {
                            "label": "确定",
                            "className": "btn-danger"
                        }
                    }
                });
                return false;
            }
            if (content == '') {
                bootbox.dialog({
                    title: '友情提示：',
                    message: "请添加幼儿园地图片!",
                    buttons: {
                        "success": {
                            "label": "确定",
                            "className": "btn-danger"
                        }
                    }
                });
                return false;
            }
        
    });

});


</script>
</body>
</html>
